package day0717;

import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {

        //Scanner输入一个成绩存入到score变量中
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您的成绩：");
        double score=sc.nextDouble();
        while(0<=score  &&  score<=100){

            if(85<=score  &&  score<=100){
                System.out.println("优秀");
            }else if(75<=score  &&  score<=85){
                System.out.println("良好");
            }else if(60<=score  &&  score<=75){
                System.out.println("中等");
            }else{
                System.out.println("不及格");
            }
            //再次输入一个成绩存入到score变量中
            System.out.println("请输入您的成绩：");
            score=sc.nextDouble();
        }
        System.out.println("您输入的分数超过 0-100 的范围了，请重试");


    }
}
